const express = require('express')
const jwt = require('jsonwebtoken')

const router = express.Router()

router.post('/login', (req, res) => {
  const token = jwt.sign({ foo: 'bar' }, 'shhhhh')
  res.statusCode = 200
  res.json({
    code: '0000',
    msg: 'ok',
    data: token,
  })
})

module.exports = router
